/-boot
/-docs
/-editor
/-files
/-files-old
/-imports
/-layout
/-shell
/-storage
/-tests
/-typings
Dom.ts
TypeScriptService.ts
functions.ts
ko.ts
nteapo.html
persistence.api.ts
persistence.ts
shell.ts
teapo.html
teapo.ts
try.html
try.js
​x
          var result = Object.keys(this.scripts).filter(k => this.scripts.hasOwnProperty(k)).sort();
1
/// <reference path='typings/typescriptServices.d.ts' />
2
/// <reference path='typings/codemirror.d.ts' />
3
​
4
module teapo {
5
​
6
  /**
7
   * Pubic API exposing access to TypeScript language  services
8
   * (see its service property)
9
   * and handling the interfaces TypeScript requires
10
   * to access to the source code and the changes.
11
   */
12
  export class TypeScriptService {
13
​
14
    /** Set of booleans for each log severity level. */
15
    logLevels = {
16
      information: false,
17
      debug: false,
18
      warning: true,
19
      error: true,
20
      fatal: true
21
    };
22
​
23
    /** TypeScript custom settings. */
24
    compilationSettings = new TypeScript.CompilationSettings();
25
​
26
    /** Main public API of TypeScript compiler/parser engine. */
27
    service: TypeScript.Services.ILanguageService;
28
​
29
    /** Files added to the compiler/parser scope, by full path. */
30
    scripts: { [fullPath: string]: TypeScriptService.Script; } = {};
31
​
32
    log: { logLevel: string; text: string; }[] = null;
33
  
34
    private _logLevel: string = null;
35
​
36
​
37
    constructor() {
38
​
0:0